package com.coisshi.base.framework.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "cloud.storage")
public class CloudStorageProperties {
    /**
     * 当前使用的云存储类型（aliyun、tencent等）
     */
    private String type;
    @NestedConfigurationProperty
    private AliyunOssProperties aliyun = new AliyunOssProperties();
    @NestedConfigurationProperty
    private TencentCosProperties tencent = new TencentCosProperties();
    // 可扩展更多云厂商
} 